Skip to main content link. Accesskey S
  • Help
  • HCL Logo
  • HCL Notes and Domino Application Development wiki
  • THIS WIKI IS READ-ONLY. Individual names altered for privacy purposes.
  • HCL Forums and Blogs
  • Home
  • Product Documentation
  • Community Articles
  • Learning Center
  • API Documentation
Search
Community Articles > 日本語 - Japanese > XPagesで和暦を表示しよう
  • Share Show Menu▼
  • Subscribe Show Menu▼

Recent articles by this author

Community articleXPagesで和暦を表示しよう
Added by ~Holly Umkisteretsi on March 13, 2013 | Version 1
expanded Abstract
collapsed Abstract
XPagesで和暦を表示する方法について記述します。
Tags: XPages, datetime
ShowTable of Contents
HideTable of Contents
  • 1 はじめに
  • 2 Localeを指定しよう

はじめに



XPages上で日付の形式を指定することが出来ますが、デフォルトでは西暦表示になっています。
この記事では、XPages上で和暦表示するための手順を紹介します。


Localeを指定しよう



やり方は簡単です。表示タイプを「日付/時刻」にしてLocaleをja_JP_JPと指定するだけです。

サンプルとして計算結果フィールドを配置して @Now() を指定します



すべてのプロパティ→データ→converter→local で「日本語(日本、JP)」を選択すると
"ja_JP_JP"がロケールとして設定されます

すると表示が和暦で表示されるようになります

 

expanded Attachments (0)
collapsed Attachments (0)
expanded Versions (2)
collapsed Versions (2)
Version Comparison     
VersionDateChanged by              Summary of changes
2Mar 13, 2013, 6:42:49 AM~Sean Elnuzenakol  
This version (1)Mar 13, 2013, 6:34:10 AM~Holly Umkisteretsi  
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedAbout
  • HCL Software
  • HCL Digital Solutions community
  • HCL Software support
  • BlogsDigital Solutions blog
  • Community LinkHCL Software forums and blogs
  • About HCL
  • Privacy
  • Accessibility